import request from '@/utils/request'

// 查询运输成本核算列表
export function listTransportCostAccounting(query) {
  return request({
    url: '/ys/transportCostAccounting/list',
    method: 'get',
    params: query
  })
}

// 查询运输成本核算详细
export function getTransportCostAccounting(id) {
  return request({
    url: '/ys/transportCostAccounting/' + id,
    method: 'get'
  })
}

// 新增运输成本核算
export function addTransportCostAccounting(data) {
  return request({
    url: '/ys/transportCostAccounting',
    method: 'post',
    data: data
  })
}

// 修改运输成本核算
export function updateTransportCostAccounting(data) {
  return request({
    url: '/ys/transportCostAccounting',
    method: 'put',
    data: data
  })
}

// 删除运输成本核算
export function delTransportCostAccounting(id) {
  return request({
    url: '/ys/transportCostAccounting/' + id,
    method: 'delete'
  })
}
